﻿using System;
using System.Globalization;
using System.Text;
using System.Web;
using EPiServer.Configuration;
using EPiServer.Core;
using EPiServer.DataAbstraction;
using EPiServer.Municipality.Extensions;
using EPiServer.Municipality.Web.UI;

namespace EPiServer.Municipality.Templates.MobilePages {
    public partial class Default : TemplatePage {

        public string StartImg
        {
            get
            {
                if (CurrentPage.IsValue("StartImg"))
                    return string.Format("<img src=\"{0}\" alt=\"{1}\" />", CurrentPage["StartImg"], IsValue("MainImageAlt") ? CurrentPage["MainImageAlt"] : string.Empty);

                return String.Empty;
            }
        }

        protected void Page_Load(object sender, EventArgs e) {

            MyPageList.DataBind();

        }
    }
}